<?php

namespace App\Providers;

use Illuminate\Support\ServiceProvider;
use App\Repositories\Hello;
use App\Repositories\HelloRepository;
class HelloProvider extends ServiceProvider
{
    /**
     * Bootstrap the application services.
     *
     * @return void
     */
    public function boot()
    {
        //
    }

    /**
     * Register the application services.
     *
     * @return void
     */
    public function register()
    {
        $this->app->bind('App\Repositories\Hello','App\Repositories\HelloRepository');

        $this->app->singleton('Hello',function(){
            return new HelloRepository();
        });
    }
}
